using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统缓存仓储接口
    /// </summary>
    public interface ISystemCacheRepository : IRepository<SystemCache>
    {
        Task<SystemCache?> GetByKeyAsync(string key);
        Task<IEnumerable<SystemCache>> GetByTypeAsync(string type);
        Task<IEnumerable<SystemCache>> GetExpiredAsync();
        Task<bool> ExistsAsync(string key);
    }
}